package com.qfedu.meidijiaju.service.impl;

import com.qfedu.meidijiaju.entity.Sbgl;
import com.qfedu.meidijiaju.entity.HcShopping;
import com.qfedu.meidijiaju.mapper.SbglMapper;
import com.qfedu.meidijiaju.service.SbglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SbglServiceImpl implements SbglService {
    @Autowired
    private SbglMapper sbglMapper;
    @Override
    public List<Sbgl> querySbByUid(int uid) {
        return sbglMapper.querySbByUid(uid);
    }

    @Override
    public int querySbCount(int uid) {
        return sbglMapper.querySbCount(uid);
    }

    @Override
    public boolean addSb(Sbgl sbgl) {
        return sbglMapper.addSb(sbgl);
    }

    @Override
    public boolean deleteSb(Sbgl sbgl) {
        return sbglMapper.deleteSb(sbgl);
    }

    @Override
    public List<HcShopping> querySbByXhId(int xhid) {
        return sbglMapper.querySbByXhId(xhid);
    }
}
